MMultiLineTextBox – A multi-line textbox with an attached titled panel and button.


Creation: MTextBox_New(caption$, autocomplete, x, y, pixelwidth, pixelheight)


caption$ - The text that is displayed caption title window.

autocomplete – Autocomplete mode (requires dictionary.txt in program dir). 0=off; 1=on

x – Pixel X coordinate for the top left corner of the textbox.

y – Pixel Y coordinate for the top left corner of the textbox.

pixelwidth – The width of the textbox in pixels.

pixelheight – The height of the textbox in pixels.


Functions:

MMultiLineTextBox_Clear(index)

Clears the textbox text and pressed state.


MMultiLineTextBox_ClearSelected(index)

Clears the pressed status of the textbox.


MMultiLineTextBox_Delete(index)

Deletes the textbox.


MMultiLineTextBox_Disable(index)

Disables the textbox, preventing further input.


MMultiLineTextBox_Draw(index)

Draws the textbox to screen.


MMultiLineTextBox_Enable(index)

Enables the textbox, allowing further input.


MMultiLineTextBox_GetSelected(index)

Returns textbox pressed status. If text was submitted by return key or button. 0=no ; 1=yes


MMultiLineTextBox_GetText(index)

Returns string, the text currently typed into the textbox.


MMultiLineTextBox_SetCaption(index, caption$)

Sets the title caption for the textbox.


MMultiLineTextBox_SetText(index, text$)

Sets the text currently typed into the textbox. Adjusts cursor to end of text.


MMultiLineTextBox_SetTextColor(index, color)

Overrides the default text color for the textbox. ARGB format.